package com.lft05.staticproxy;

/**
 * Function: 		A {@code WeddingCompany} 代理角色，帮助您完成<br/>
 * Reason:   		ADD REASON.<br/>
 * Date:            2021-01-26 22:39<br/>
 * <p>
 * Class Name:      WeddingCompany<br/>
 * Package Name:    com.lft05.staticproxy<br/>
 * @author Laifengting / E-mail:laifengting@foxmail.com
 * @version 1.0.0
 * @since JDK 8
 */
public class WeddingCompany implements Marry {
	private Marry target;
	
	public WeddingCompany(Marry target) {
		this.target = target;
	}
	
	@Override
	public void happyMarry() {
		before();
		this.target.happyMarry();
		after();
	}
	
	private void before() {
		System.out.println("结婚之前，先布置场景");
	}
	
	private void after() {
		System.out.println("结婚之后，拆掉布景");
	}
}
